<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="localservices_v1.html">Local Services API</a> . <a href="localservices_v1.detailedLeadReports.html">detailedLeadReports</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#search">search(endDate_day=None, endDate_month=None, endDate_year=None, pageSize=None, pageToken=None, query=None, startDate_day=None, startDate_month=None, startDate_year=None, x__xgafv=None)</a></code></p>
<p class="firstline">Get detailed lead reports containing leads that have been received by all linked GLS accounts. Caller needs to provide their manager customer id and the associated auth credential that allows them read permissions on their linked accounts.</p>
<p class="toc_element">
  <code><a href="#search_next">search_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="search">search(endDate_day=None, endDate_month=None, endDate_year=None, pageSize=None, pageToken=None, query=None, startDate_day=None, startDate_month=None, startDate_year=None, x__xgafv=None)</code>
  <pre>Get detailed lead reports containing leads that have been received by all linked GLS accounts. Caller needs to provide their manager customer id and the associated auth credential that allows them read permissions on their linked accounts.

Args:
  endDate_day: integer, Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
  endDate_month: integer, Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
  endDate_year: integer, Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
  pageSize: integer, The maximum number of accounts to return. If the page size is unset, page size will default to 1000. Maximum page_size is 10000. Optional.
  pageToken: string, The `next_page_token` value returned from a previous request to SearchDetailedLeadReports that indicates where listing should continue. Optional.
  query: string, A query string for searching for account reports. Caller must provide a customer id of their MCC account with an associated Gaia Mint that allows read permission on their linked accounts. Search expressions are case insensitive. Example query: | Query | Description | |-------------------------|-----------------------------------------------| | manager_customer_id:123 | Get Detailed Lead Report for Manager with id | | | 123. | Required.
  startDate_day: integer, Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
  startDate_month: integer, Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
  startDate_year: integer, Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A page of the response received from the SearchDetailedLeadReports method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.
  &quot;detailedLeadReports&quot;: [ # List of detailed lead reports uniquely identified by external lead id.
    { # A Detailed Lead Report of a lead identified by their lead id and contains consumer, account, monetization, and lead data.
      &quot;accountId&quot;: &quot;A String&quot;, # Identifies account that received the lead.
      &quot;aggregatorInfo&quot;: { # Conatiner for aggregator specific information if lead is for an aggregator GLS account. # Aggregator specific information related to the lead.
        &quot;aggregatorProviderId&quot;: &quot;A String&quot;, # Provider id (listed in aggregator system) which maps to a account id in GLS system.
      },
      &quot;bookingLead&quot;: { # Container for booking lead specific information. # More information associated to only booking leads.
        &quot;bookingAppointmentTimestamp&quot;: &quot;A String&quot;, # Timestamp of when service is provided by advertiser.
        &quot;consumerEmail&quot;: &quot;A String&quot;, # Consumer email associated with the booking lead.
        &quot;consumerPhoneNumber&quot;: &quot;A String&quot;, # Consumer phone number associated with the booking lead.
        &quot;customerName&quot;: &quot;A String&quot;, # Name of the customer who created the lead.
        &quot;jobType&quot;: &quot;A String&quot;, # The job type of the specified lead.
      },
      &quot;businessName&quot;: &quot;A String&quot;, # Business name associated to the account.
      &quot;chargeStatus&quot;: &quot;A String&quot;, # Whether the lead has been charged.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Currency code.
      &quot;disputeStatus&quot;: &quot;A String&quot;, # Dispute status related to the lead.
      &quot;geo&quot;: &quot;A String&quot;, # Location of the associated account&#x27;s home city.
      &quot;googleAdsLeadId&quot;: &quot;A String&quot;, # Unique identifier of a Detailed Lead Report.
      &quot;leadCategory&quot;: &quot;A String&quot;, # Lead category (e.g. hvac, plumber)
      &quot;leadCreationTimestamp&quot;: &quot;A String&quot;, # Timestamp of when the lead was created.
      &quot;leadId&quot;: &quot;A String&quot;, # Deprecated in favor of google_ads_lead_id. Unique identifier of a Detailed Lead Report.
      &quot;leadPrice&quot;: 3.14, # Price of the lead (available only after it has been charged).
      &quot;leadType&quot;: &quot;A String&quot;, # Lead type.
      &quot;messageLead&quot;: { # Container for message lead specific information. # More information associated to only message leads.
        &quot;consumerPhoneNumber&quot;: &quot;A String&quot;, # Consumer phone number associated with the message lead.
        &quot;customerName&quot;: &quot;A String&quot;, # Name of the customer who created the lead.
        &quot;jobType&quot;: &quot;A String&quot;, # The job type of the specified lead.
        &quot;postalCode&quot;: &quot;A String&quot;, # The postal code of the customer who created the lead.
      },
      &quot;phoneLead&quot;: { # Container for phone lead specific information. # More information associated to only phone leads.
        &quot;chargedCallTimestamp&quot;: &quot;A String&quot;, # Timestamp of the phone call which resulted in a charged phone lead.
        &quot;chargedConnectedCallDurationSeconds&quot;: &quot;A String&quot;, # Duration of the charged phone call in seconds.
        &quot;consumerPhoneNumber&quot;: &quot;A String&quot;, # Consumer phone number associated with the phone lead.
      },
      &quot;timezone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Timezone of the particular provider associated to a lead.
        &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
        &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
      },
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to retrieve the next page of results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.
}</pre>
</div>

<div class="method">
    <code class="details" id="search_next">search_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>